<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <style>
        .row {
            border: 1px solid #ccc;
            margin: 0 auto;
        }

        .agencyM_table tr th {
            text-align: center;
        }

        .textR {
            text-align: right;
        }

        .td2 {
            min-width: 140px
        }
    </style>
</head>

<body class="white-bg" style="color:#333;padding:0px;">
<div class="container" style="width: 100%;padding: 0">
    <div class="page-heade">
        <h2 class="title_color text-center">网点详情</h2>
    </div>
    {include file="net/view_common"}
    <div class="row border-bottom white-bg">
        <div class="col-md-12 border_S padding_lr H_title title_color"
             style="line-height: 30px;text-align: left;font-size:14px">
            <input type="button" class="btn-primary btn" value="添加导购员" id="tjdgy">
        </div>
        <table class="table table-bordered">
            <tr>
                <th>姓名</th>
                <th>岗位类型</th>
                <th>联系方式</th>
                <th>目前状态</th>
                <th>在岗记录</th>
            </tr>
            {volist name="dg" id="row"}
            <tr>
                <td>{$row.xm}</td>
                <td>{$row.gwlx}</td>
                <td>{$row.lxfs}</td>
                <td>{$row.mqzt}</td>
                <td>{$row.zgjl}</td>
            </tr>
            {/volist}
        </table>

    </div>
    <!--<div class="ibox-content text-center">
        暂无导购员信息
    </div>-->
</div>
    <!-- 全局js -->
    {include file="Public/footer"}
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>

    <!-- jqGrid -->
    <!-- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script> -->
    <!--统计代码，可删除-->
    <script>
        $(document).ready(function () {
            $('#tjdgy').on('click',function () {
                layer.open({
                    type: 2,
                    title: '添加导购信息',
                    area: ['1200px', '600px'],
                    fixed: false, //不固定
                    maxmin: true,
                    content: "{:url('tjdgxx')}",
                    btn:['确定','取消'],
                    yes:function (i,o) {
                        var a = $(o).find('iframe').contents()
                        var data = a.find('.duoxuan')

                        var dgyid = [];
                        data.find('.ren').find('input').each(function (i,o) {
                            dgyid.push($(o).val())
                        })
                        $.post('{:url("net/tjdgxx",["id"=>Request()->param("id")])}',{dgid:dgyid},function (data) {
                            if(data.success){
                                swal({title:data.msg},function () {
                                    layer.close(i)
                                })
                            }else{
                                swal(data.msg,'','error')
                            }
                        },'json')


                    }
                });
                return false
            })
            //修改联系人
            $('#updateContact').on('click', function () {
                layer.open({
                    type: 2,
                    title: '修改',
                    area: ['95%', '80%'],
                    content: '{:url("form_contact",array("id"=>$data.id))}'
                })
                return false
            })

        })
    </script>
</body>

</html>